import React from "react"
import querystring from 'querystring';
import { Card } from 'antd';
const locationSerach = (props) => {
    var param = new URLSearchParams(props.location.search);
    var param2 = querystring.parse(props.location.search.replace("?", ""))
    console.log(param2)
    return (
        <Card title="/router/router02?id=99" bordered={false}>
            <div>
                <p>URLSearchParams方法        id=={param.get("id")}</p>
                <p>querystring方法            id=={param2.id}</p>
            </div>
        </Card>
    )
}
export default locationSerach 